package com.spring.student.register;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Register {
    public static void main(String[]args){
        ApplicationContext context;
        context = new ClassPathXmlApplicationContext("register.xml");
        User user =(User)context.getBean("user");
        System.out.println(user);
        ((AbstractApplicationContext)context).close();
    }
}
